// 车辆管理
import layout from '@/layout'

export default {
  path: '/vehicle',
  component: layout,
  name: 'vehicle',
  //   redirect: '',
  meta: {
    title: '车辆管理',
    icon: 'el-icon-s-promotion'
  },
  children: [
    // 子路由
    {
      path: 'car-models',
      component: () => import('@/views/vehicle/car-models'),
      meta: {
        title: '车型管理'
      }
    },
    {
      path: 'carVehicle',
      component: () => import('@/views/vehicle/vehicle-list'),
      meta: {
        title: '车辆列表'
      }
    },
    {
      path: 'carregister',
      component: () => import ('@/views/carregister'),
      meta: {
        title: '回车登记'
      }
    },
    {
      path: '/vehicle-detail/:id?',
      component: () => import('@/views/vehicle/vehicle-list/components/vehicle-detail')
    }

  ]
}
